package com.alan.libapi.model.business;

/**
 * @className: UserPackageSituation
 * @describtion: UserPackageSituation
 * @author: AlanWang
 * @email: 850267876@qq.com
 * @time: 2016/4/18 01:22
 */
public class UserPackageSituation {

    /**
     * 用户当前使用套餐类型，若从未使用和购买则该值为0，客户端需提示用户去购买套餐
     */
    private int packageType;
    /**
     * 如果用户使用的流量套餐，则该项为用户的剩余可使用流量，如果是包月套餐，该值为-1
     */
    private long remainingFlows;
    /**
     * 用户所用套餐的截止日期的UNIX时间戳，精确到秒级，十位
     */
    private long deadline;

    public int getPackageType() {
        return packageType;
    }

    public void setPackageType(int packageType) {
        this.packageType = packageType;
    }

    public long getRemainingFlows() {
        return remainingFlows;
    }

    public void setRemainingFlows(long remainingFlows) {
        this.remainingFlows = remainingFlows;
    }

    public long getDeadline() {
        return deadline;
    }

    public void setDeadline(long deadline) {
        this.deadline = deadline;
    }

    @Override
    public String toString() {
        return "UserPackageSituation{" +
                "packageType=" + packageType +
                ", remainingFlows=" + remainingFlows +
                ", deadline=" + deadline +
                '}';
    }
}
